Xbasic

START_POLY Function

Syntax

V START_POLY(N XPos,N YPos)

Arguments

XPos

The horizontal coordinate of the first point of the polygon. Numeric

YPos

The vertical coordinate of the first point of the polygon. Numeric

Description

Start a polygon at a point.

Discussion

The START_POLY() function begins a polygon by setting its initial point. Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().

Example

ui_bitmap_create("test", 4, 2)
ui_bitmap_draw("test",
inner_Rect(0, 0, 4, 2)
set_brush("green")
set_pen("black")
start_poly(2, .5)
lineto(3, 1)
lineto(1, 1.5)
poly(2, .5)
%code%)
ui_dlg_box("","{image=test}")

See Also